package com.sy.mapper.purchase;

import com.sy.bean.purchase.ChuStock;
import com.sy.bean.purchase.RuStock;
import com.sy.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ChuRuStockMapper extends IMapper<ChuStock> {

    List<RuStock> queryRuStock(Map map);
    /**
     * 根据年查询最大编码
     * @param year 年
     * @return
     */
    String queryMaxCode(String year);

    /**
     * 新增出库单
     * @param ruStock
     * @return
     */
    int insert(RuStock ruStock);
}
